﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace Wicresoft.UnifyShow.BusinessImpl
{
    public class BasicITSM: IDisposable
    {
        //multi thread ,i think that cann't use the static
        private readonly static string connstr = ConfigurationManager.ConnectionStrings["ITSMContext"].ConnectionString;
        protected OracleDataAccess oda;

        public BasicITSM()
        {
            oda = new OracleDataAccess(connstr);
        }

        //Transaction
        public OracleDataAccess Connection
        {
            get
            {
                return oda;
            }
            set
            {
                oda = value;
            }
        }

        public void Dispose()
        {
            oda.Dispose();
        }
    }
}
